package com.example.ticketorder.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.sql.Time;

@Data
@Entity
public class Ticket {
    @Id
    public String car;
    public String departure;//出发地
    public String destination;//目的地
   public Date Dtime;
    public Time Htimea;//出发时间
    public Time Htimeb;//到达时间
    public int poll;//票数
    public double money;


}
